package com.tao.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BmiController {
    @RequestMapping("/bmi")
    public double bmi(double h,double w){
        double bmi = w/(h*h);
        return bmi;
    }
}
